package com.uwo.house.service;

import com.uwo.house.beans.request.MaterialDetailReq;
import com.uwo.house.beans.request.MaterialListReq;
import com.uwo.house.beans.request.MaterialStatusReq;
import com.uwo.house.beans.response.ShipmentRemarkResp;

import java.util.List;

/**
 * Created by YZYG on 2017/7/17.
 */
public interface IMaterialListService {
    /**
     * 供应商得到订单列表
     * @param orderId
     * @param supplierId
     * @param materialSts
     * @return
     */
    List<MaterialStatusReq> getMaterialList(String supplierId, String orderId, int materialSts);

    /**
     * 供应商材料详情
     * @param planId
     * @return
     */
    List<MaterialDetailReq> getMaterialDetailByPlanId(int planId);

    /**
     * 供应商发货,进行订单状态更新
     */
    int updateMaterialStatus(String id);

    /**
     * 供应商端进行订单删除
     * @param id
     * @return
     */
    int deleteMaterialById(int id);

    ShipmentRemarkResp getShipmentDetailByMaterialStatusId(String id);

    int saveShipment(ShipmentRemarkResp shipmentRemarkResp);

    int deleteMessageByMessageId(int messageId);

    int addMaterialStatus(MaterialStatusReq materialStatusReq);

    /**
     * 项目经理、监理端显示材料数据详情
     * @param orderId
     * @return
     */
    List<MaterialListReq> getMaterialDetailByOrderId(String orderId);

    /**
     * 供应商显示材料数据详情
     */
    List<MaterialListReq> getMaterialDetailsByPlanId(Integer planId);
}
